﻿using IotClientApp.Shared;
using IotModel;

namespace IotClientApp.Server.Services
{
    public interface IDeviceService
    {
        Task<PageResponse<DeviceInfoModel>> GetDeviceInfos(GetDeviceInfoModel input);
        Task<ApiResult<DeviceInfoModel>> SaveDeviceInfo(DeviceInfoModel input);
        Task<string> StartDevice(DeviceModel device);
        Task<ApiResult<string>> EnableDevice(string deviceId, bool isActive);
        Task<List<DeviceModel>> GetDevices();
        Task<ApiResult<string>> ControlPoint(ControlPointModel input);
    }
}